<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Axios</title>
</head>
<body>

<div id="app">

    <h1> {{repData}}</h1>

</div>

<script src="node_modules/vue/dist/vue.js"></script>
<script src="node_modules/axios/dist/axios.js"></script>
<script>

    new Vue({
        el: "#app",
        data: {
            repData: "asd"
        },
        created() {
            axios.get("http://localhost:63342/vue-mxg/vue-06-lifecycle&ajax/db.json").then((item) => {
                this.repData = item;
            }).catch(error => {
                console.log(error.message)
            })
        }
    })

</script>
</body>
</html>
